//
//  Message.h
//  11-QQ聊天
//
//  Created by wangneihan on 15/12/21.
//  Copyright © 2015年 wangneihan. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
    MessageTypeSelf,
    MessageTypeOther
} MessageType;

@interface Message : NSObject

@property (nonatomic , copy) NSString *text;

@property (nonatomic , copy) NSString *time;

@property (nonatomic , assign) MessageType type;

@property (nonatomic , assign,getter=isHiddenTime) BOOL hiddenTime;

-(instancetype)initWithDic:(NSDictionary *)dic;

+(instancetype)msgWithDic:(NSDictionary *)dic;

+(NSArray *)message;

@end
